| Previous | Chapter contents | Chapter top | Section top | Next |
You can use the QTVRSetViewCenter function to set the view center of a QuickTime VR movie.
OSErr QTVRSetViewCenter (
QTVRInstance qtvr,
const QTVRFloatPoint *viewCenter);
The QTVRSetViewCenter function sets the view center of the QuickTime VR movie specified by the qtvr parameter to the fixed point specified by the viewCenter parameter. That point is constrained by the current field of view of the movie. The values you pass in the QTVRFloatPoint structure are adjusted so that the magnified area does not show anything outside the view.
If the kQTVRTranslation control setting is disabled, the QTVRSetViewCenter function returns the result code constraintReachedErr and doesn't change the current view center.
Use QTVRGetViewCenter [link] to get the view center of a movie.
| Previous | Chapter contents | Chapter top | Section top | Next |